package com.galen.manual.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotBlank;

@Data
@Schema(description = "短信验证码登录请求")
public class SmsLoginDTO {

    @Schema(description = "手机号", example = "13800138000", required = true)
    @NotBlank(message = "手机号不能为空")
    private String phone;

    @Schema(description = "短信验证码", example = "123456", required = true)
    @NotBlank(message = "验证码不能为空")
    private String smsCode;
}